/*
 * rosa_delays.h
 *
 * Created: 2014-12-03 13:44:21
 *  Author: Andreas Domfors
 */ 


#ifndef ROSA_DELAYS_H_
#define ROSA_DELAYS_H_

/************************************************************************/
/*                    ROSA PUBLIC API                                   */
/************************************************************************/

typedef unsigned long int timerType;

/// Delays the currently executing task by ticksToDelay ticks
void ROSA_taskDelay(timerType ticksToDelay);

/// Delays the currently executing task until the current tick count equals (ticks + period)
void ROSA_taskDelayUntil(timerType ticks, timerType period);

/// Returns current tick value
timerType ROSA_getCurrentTick(void);

#endif /* ROSA_DELAYS_H_ */